Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add /agenda command #58

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

add /agenda command #58

wants to merge 10 commits into from

Conversation

wizzdom
Copy link
Member

@wizzdom wizzdom commented Nov 23, 2024

No description provided.

@wizzdom wizzdom requested a review from novanai November 23, 2024 02:12
@wizzdom
Copy link
Member Author

wizzdom commented Nov 23, 2024

The hedgedoc 1.x API seems to lack the ability to set permissions on notes. Therefore this PR relies on redbrick/nomad#76
This should be fixed with the release of hedgedoc 2.0

src/extensions/agenda.py Outdated Show resolved Hide resolved
src/extensions/agenda.py Outdated Show resolved Hide resolved
@wizzdom wizzdom requested a review from novanai November 26, 2024 23:56

def generate_date_choices() -> list[str]:
"""Generate date options for the next 7 days."""
today = datetime.date.today()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These generated day options will never update, so today will always be the day blockbot was started on. The only way around this is using day names instead of dates, or generating options with autocomplete (such as something I've done here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants